package com.sinothk.gpserver.modules.biz.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.sinothk.gpserver.modules.comm.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 房间相关
 * </p>
 *
 * @author Liang Y.t.
 * @since 2021-08-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("biz_room")
@ApiModel(value="RoomEntity对象", description="房间相关")
public class RoomEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "房间编号")
    private String roomNum;

    @ApiModelProperty(value = "房间名称")
    private String roomName;

    @ApiModelProperty(value = "描述")
    private String roomDes;

    @ApiModelProperty(value = "俱乐部ID")
    private String groupId;

    @ApiModelProperty(value = "所属群名称")
    @TableField(exist = false)
    private String groupName;

    @ApiModelProperty(value = "房主Account")
    private String roomLeaderAccount;

    @ApiModelProperty(value = "房主名称")
    private String roomLeader;

    @ApiModelProperty(value = "总局数")
    private Integer gameSize;

    @ApiModelProperty(value = "当前局数")
    private Integer gameTimes;

    @ApiModelProperty(value = "房间人数")
    private Integer memberSize;

    @ApiModelProperty(value = "底池")
    private Float baseCoins;

    @ApiModelProperty(value = "最小下注")
    private Float minBet;

    @ApiModelProperty(value = "最大下注")
    private Float maxBet;

    @ApiModelProperty(value = "小盲下注值")
    private Float minCast;

    @ApiModelProperty(value = "开启保险")
    private Boolean hasInsurance;

    @ApiModelProperty(value = "房间类型：0:普通/1:7张")
    private Integer roomType;

    @ApiModelProperty(value = "房主分成比例")
    private Integer roomLeaderPc;

//    @ApiModelProperty(value = "合伙人Account")
//    private String partnerAccount;
//
//    @ApiModelProperty(value = "合伙人名称")
//    private String partnerName;

    @ApiModelProperty(value = "合伙人分成比例")
    private Integer partnerPc;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除：0未删除;1删除;")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "类型：0:待入座 1:游戏中 2:已解散")
    private Integer state;

}
